package FinalTest.demo09;

public class MyStringTest {
    public static void main(String[] args) {
        String ziFu01 = "hello java";
        String ziFu02 = "hello java";
        if (ziFu01.equals(ziFu02)){
            System.out.println("它们相等！！！");
            String ziFu03 = ziFu01.replace(" ","").replace("java","world");
            System.out.println(ziFu03);
        }else {
            System.out.println("它们不相等！！！");
        }
    }
}
